package com.wicket.okrcomponent.integration.dto;


import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc ConfSchemeDto
 * @使用场景
 */
@Data
public class ConfSchemeDto extends BaseDto implements Serializable {

    /**
     * 配置方案ID:
     */
    @ApiModelProperty("配置方案ID ")
    private String confSchemeId;

    /**
     * 配置方案标识:
     */
    @ApiModelProperty("配置方案标识")
    private String confSchemeCode;

    /**
     * 配置方案名称:
     */
    @ApiModelProperty("配置方案名称")
    private String confSchemeName;

    /**
     * 应用对象类型:
     */
    @ApiModelProperty("应用对象类型")
    private String applObjType;

    /**
     * 方案类型编码:
     */
    @ApiModelProperty("方案类型编码")
    private String confSchemeTypeCode;

    /**
     * 是否必选方案:
     */
    @ApiModelProperty("是否必选方案")
    private String isMandatory;

    /**
     * 授权类型:
     */
    @ApiModelProperty("授权类型")
    private String authType;
    /**
     * 生命周期状态:
     */
    @ApiModelProperty("生命周期状态")
    private String subjectLifeCycle;
    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operationTime;
    /**
     * 是否初始方案:
     */
    @ApiModelProperty("是否初始方案")
    private String isInitialScheme;
    /**
     * 是否存档
     */
    @ApiModelProperty("是否存档")
    private String isArchive;
/**
     * 授权单位 YEAR:年 A:个 COVER:套
     */
    @ApiModelProperty("授权单位")
    private String	 authUnit;

    /**
     * 授权数量 
     */
    @ApiModelProperty("授权数量")
    private Long	 authorizationNum;
/**
     * 操作时间 
     */
    @ApiModelProperty("操作时间")
    private Date	 operateTime;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      ConfSchemeDto that = (ConfSchemeDto) o;
      return  confSchemeId == that.confSchemeId&&confSchemeCode == that.confSchemeCode&&confSchemeName == that.confSchemeName&&applObjType == that.applObjType&&confSchemeTypeCode == that.confSchemeTypeCode&&isMandatory == that.isMandatory&&authType == that.authType&&subjectLifeCycle == that.subjectLifeCycle&&operationInductionId == that.operationInductionId&&operationTime == that.operationTime&&isInitialScheme == that.isInitialScheme&&isArchive == that.isArchive&&authUnit == that.authUnit&&authorizationNum == that.authorizationNum&&operateTime == that.operateTime;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), confSchemeId,confSchemeCode,confSchemeName,applObjType,confSchemeTypeCode,isMandatory,authType,subjectLifeCycle,operationInductionId,operationTime,isInitialScheme,isArchive,authUnit,authorizationNum,operateTime);
    }

}
